// 定义详情模块数据
export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}

// 定义医院详情接口返回数据类型
export interface HospitalDetail {
  bookingRule: {
    cycle: number;
    releaseTime: string;
    stopTime: string;
    quitDay: number;
    quitTime: string;
    rule: string[];
  };
  hospital: {
    id: string;
    createTime: string;
    updateTime: string;
    isDeleted: number;
    param: {
      hostypeString: string;
      fullAddress: string;
    };
    hoscode: string;
    hosname: string;
    hostype: string;
    provinceCode: string;
    cityCode: string;
    districtCode: string;
    address: string;
    logoData: string;
    intro: string;
    route: string;
    status: number;
    bookingRule: null;
  };
}

// 医院详情数据接口返回的数据类型
export interface HospitalDetailRes extends ResponseData {
  data: HospitalDetail;
}

// 医院科室接口的返回数据类型
export interface HospitalDepartment {
  depcode: string;
  depname: string;
  children?: HospitalDepartment[];
}

export interface HospitalDepartmentRes extends ResponseData {
  data: HospitalDepartment[];
}

// 用户手机号验证码接口的返回数据类型
export interface PhoneCodeRes extends ResponseData {
  data: string;
}

// 用户登录接口需要携带的参数类型
export interface LoginData {
  phone: string;
  code: string;
}

// 登录接口返回的用户信息数据
export interface UserInfo {
  name: string;
  token: string;
}

//登录接口返回的数据类型
export interface UserInfoRes extends ResponseData {
  data: UserInfo;
}
